package com.feibo.pojo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * java类简单作用描述
 *
 * @ProjectName: feibo
 * @Package: com.feibo.pojo
 * @ClassName:
 * @Description:
 * @Author: zhenglinyong
 * @CreateDate: 2018/12/18 10:40 PM
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 **/
@Configuration
@ConfigurationProperties(prefix="com.feibo")
@PropertySource("classpath:/resource.properties")
//如果没有这个注解，默认加载application.properties文件
public class Resource {
    private String name;
    private String address;

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }

}